package com.lu.mapper;

import com.lu.entity.Floor;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface FloorMapper {
    //查询楼的所有数据
    List<Floor> selectFloorAll();

    //根据id删除数据
    @Delete("delete from floor where id = #{id}")
    void deleteFloor(Integer id);

    //根据id查询数据
    List<Floor> selectFloorById(Integer id);

    //修改楼宇的数据
    void updateFloor(Floor floor);

    //模糊查询
    List<Floor> selectFloor(Floor floor);

    //添加楼宇数据
    void insertFloor(Floor floor);
}
